Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Algorithms And Data Structures+UnSolved



Thursday, January 23, 2020

If the access time of a symbol table can be made logarithmic

If the access time of a symbol table can be made logarithmic, it greatly reduces the search time. This can be implemented by
Aa linear list
Ba search tree
Chashing mechanism
Dself-organisation chart
View Answer

The following graph is reduced to its minimum spanning tree

The following graph is reduced to its minimum spanning tree using prim's method. Indicate the sequence in which the nodes get included
A1, 2, 5, 6, 4, 3
B1, 2, 6, 4, 5, 3
C1, 2,.3, 6, 4, 5
D1, 2, 6, 3, 4, 5
View Answer

Given the set of keys ( 40, 80, 35, 90, 45, 50, 70 ), which

Given the set of keys ( 40, 80, 35, 90, 45, 50, 70 ), which of the following represents a heap ? ( Each pair of parentheses indicate nodes at one level, left child first)
A( ( 90 ) ( 40 - 80 ) ( ( 35 - 70 ) - ( 45 - 50 ) ) )
B( ( 80 ) ( 90 - 70 ) ( ( 40 - 45 ) ( 35 - 50 ) ) )
C( ( 90 ) ( 80 - 70 ) ( ( 40 - 45 ) ( 35 - 50 ) ) )
D( ( 70 ) ( 80 - 90 ) ( ( 50 - 45 ) ( 40 - 35 ) ) )
View Answer

Wednesday, January 22, 2020

A hash table contains 10 buckets and uses linear probing to

A hash table contains 10 buckets and uses linear probing to avoid collisions. The key values are integers and hash function used is key mod 10. If the values come as 43. 165. 62, 123 and 142. in what location is 142 inserted ?
A2
B3
C4
D6
View Answer

Categories